package com.qing.fordemo;

/**
 * 跳出循环
 */
public class Break {
    public static void main(String[] args) {
        for (int i = 0; i < args.length; i++) {
            System.out.println(args[i]);
        }
        for (int i = 0; i < 100; i++) {
            System.out.println(i);
            if (i == 20) {
                break;
            }
        }
        System.out.println("遇到20刺客，我们已经撤退！");
    }
}
